﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CircuitBoardApplication.Classes
{
    class Connection
    {
        private ComponentMain sentComponent, receivingComponent;
        private int valuePassed;

        public Connection(ComponentMain sentComponent, ComponentMain receivingComponent)
        {
            this.sentComponent = sentComponent;
            this.receivingComponent = sentComponent;
            this.valuePassed = sentComponent.Value;
        }

        public ComponentMain SENTComponent
        {
            get { return sentComponent; }
        }
        public ComponentMain RECEIVINGComponent
        {
            get
            {
                return receivingComponent;
            }
        }

        public override string ToString()
        {
            return base.ToString() + " sentComponent Value: " + sentComponent.Value.ToString();
        }
    }
}
